package com.baidu.cmsService.dao;

import com.baidu.cmsCommes.pojo.GroupChannel;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author: BSS
 * @create: 2020/6/22/9:54
 */
@Mapper
public interface GroupChannelDao {

    @Select("select * from t_group_channel where g_id = #{gid}")
    List<GroupChannel> selectByGid(@Param("gid") Integer gid);

    @Delete("delete from t_group_channel where c_id=#{cid}")
    void deleteByCid(@Param("cid") Integer cid);
}
